package com.ruoyi.merchant.domain;

import com.ruoyi.merchant.annotation.Dict;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 机构信息对象 t_organ
 * 
 * @author chengxin.ju
 * @date 2023-12-12
 */
public class Organ extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 机构id */
    private String id;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String name;

    /** 机构编码 */
    @Excel(name = "机构编码")
    private String code;

    /** 机构类型 */
    @Dict(dicCode = "orgType")
    @Excel(name = "机构类型")
    private String type;

    /** 机构层级 */
    @Dict(dicCode = "orgLevel")
    @Excel(name = "机构层级")
    private String level;

    /** 父级机构 */
    @Excel(name = "父级机构")
    private String pid;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String contactNumber;

    /** 机构电话 */
    @Excel(name = "机构电话")
    private String orgainContactNumber;

    /** 登录账号id */
    @Excel(name = "登录账号id")
    private String accountId;

    /** 所属区域（省） */
    @Excel(name = "所属区域", readConverterExp = "省=")
    private String provinceCode;

    /** 所属区域（市） */
    @Excel(name = "所属区域", readConverterExp = "市=")
    private String cityCode;

    /** 所属区域（区/县） */
    @Excel(name = "所属区域", readConverterExp = "区=/县")
    private String areaCode;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailedAddress;

    /** 机构概况 */
    @Excel(name = "机构概况")
    private String orgainProfile;

    /** 机构状态 0 激活 1 冻结 */
    @Excel(name = "机构状态 0 激活 1 冻结")
    private Integer status;

    /** 删除标志  0 未删除 1 已删除 */
    @Excel(name = "删除标志  0 未删除 1 已删除")
    private Integer del;

    /** 机构权限字段 */
    @Excel(name = "机构权限字段")
    private String orgCode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String headImg;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setContactNumber(String contactNumber) 
    {
        this.contactNumber = contactNumber;
    }

    public String getContactNumber() 
    {
        return contactNumber;
    }
    public void setOrgainContactNumber(String orgainContactNumber) 
    {
        this.orgainContactNumber = orgainContactNumber;
    }

    public String getOrgainContactNumber() 
    {
        return orgainContactNumber;
    }
    public void setAccountId(String accountId) 
    {
        this.accountId = accountId;
    }

    public String getAccountId() 
    {
        return accountId;
    }
    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setDetailedAddress(String detailedAddress) 
    {
        this.detailedAddress = detailedAddress;
    }

    public String getDetailedAddress() 
    {
        return detailedAddress;
    }
    public void setOrgainProfile(String orgainProfile) 
    {
        this.orgainProfile = orgainProfile;
    }

    public String getOrgainProfile() 
    {
        return orgainProfile;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }
    public void setOrgCode(String orgCode) 
    {
        this.orgCode = orgCode;
    }

    public String getOrgCode() 
    {
        return orgCode;
    }
    public void setHeadImg(String headImg) 
    {
        this.headImg = headImg;
    }

    public String getHeadImg() 
    {
        return headImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("type", getType())
            .append("level", getLevel())
            .append("pid", getPid())
            .append("contacts", getContacts())
            .append("contactNumber", getContactNumber())
            .append("orgainContactNumber", getOrgainContactNumber())
            .append("accountId", getAccountId())
            .append("provinceCode", getProvinceCode())
            .append("cityCode", getCityCode())
            .append("areaCode", getAreaCode())
            .append("detailedAddress", getDetailedAddress())
            .append("orgainProfile", getOrgainProfile())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .append("orgCode", getOrgCode())
            .append("headImg", getHeadImg())
            .toString();
    }
}
